Automattic\Jetpack\Stats_Admin\REST_Controller B

Total Complexity 83
Dependencies 7
Dependents 1
Total lines 1,083
Lines of code 764
Logical lines of code 156
Comment lines 223
Methods 31
Properties 2

Methods 31

Method Rating Maintainability Complexity Lines of code
get_stats_resource()
B
42 19 52
register_rest_routes()
B
26
1 286
get_email_clicks_stats_single()
S
53 7 25
filter_and_build_query_string()
S
61 6 13
get_single_post_likes()
S
51 5 28
get_site_posts()
S
51 5 26
get_email_opens_stats_single()
S
54 5 23
get_email_stats_time_series()
S
56 3 21
get_single_resource_stats()
S
59 3 16
get_single_post()
S
62 3 11
get_email_stats_list()
S
57 2 19
can_user_view_wordads_stats_callback()
S
71 3 6
can_user_view_general_stats_callback()
S
71 3 6
update_dashboard_modules()
S
56 1 20
update_dashboard_module_settings()
S
56 1 20
get_dashboard_module_settings()
S
58 1 19
get_dashboard_modules()
S
58 1 19
run_commercial_classification()
S
58 1 18
mark_referrer_spam()
S
60 1 16
unmark_referrer_spam()
S
60 1 16
get_site_plan_usage()
S
60 1 15
get_site_subscribers_counts()
S
60 1 15
site_has_never_published_post()
S
60 1 15
get_utm_stats_time_series()
S
61 1 14
get_wordads_earnings()
S
62 1 13
get_wordads_stats()
S
62 1 13
get_forbidden_error()
S
68 1 7
get_notice_status()
S
81 1 3
update_notice_status()
S
78 1 3
get_site_stats()
S
80 1 3
__construct()
S
80 1 3